package com.movitech.mobile.cz.base.supplier.bizcontroller;

import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.common.util.StringUtils;
import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.supplier.bizservice.SSuppliersWorkFlowService;
import com.movitech.mobile.cz.base.supplier.bizvo.*;
import com.movitech.mobile.cz.base.supplier.entity.SSupplierRcRelate;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliers;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersInspectionPerform;
import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSSuppliers;
import com.movitech.mobile.cz.base.supplier.entity.ext.TransferRequestVO;
import com.movitech.mobile.cz.base.supplier.mapper.ext.ExtSSupplierRcRelateMapper;
import com.movitech.mobile.cz.base.supplier.mapper.ext.ExtSSuppliersMapper;
import com.movitech.mobile.cz.base.supplier.service.SMyDealsService;
import com.movitech.mobile.cz.base.supplier.service.SSupplierRcRelateService;
import com.movitech.mobile.cz.base.sys.entity.SMessages;
import com.movitech.mobile.cz.base.sys.service.SMessagesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * SSuppliers 供方管理流程 前端控制器
 *
 * @author Jack.Gong
 * @since 2018-03-01
 */
@RestController
@RequestMapping("/v1/sSuppliersWorkFlow")
@Api(value = "供方管理流程接口", description = "供方管理流程接口")
public class SSuppliersWorkFlowController {

    @Autowired
    @Qualifier("sSuppliersWorkFlowService")
    private SSuppliersWorkFlowService sSuppliersWorkFlowService;

    @Autowired
    private ExtSSuppliersMapper extSSuppliersMapper;

    @Autowired
    private SSupplierRcRelateService sSupplierRcRelateService;


    @Autowired
    private ExtSSupplierRcRelateMapper extSSupplierRcRelateMapper;

    @Autowired
    private SMessagesService sMessagesService;

    @Autowired
    private SMyDealsService sMyDealsService;

    @GetMapping("/getSuppliersSiteInspectionBaseInfo/{rcRelatedId}")
    @ApiOperation(value = "供应商现场考察基本信息接口", notes = "供应商现场考察基本信息接口")
    public RestReturnResult getSuppliersSiteInspectionBaseInfo(@PathVariable String rcRelatedId) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        try {
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(rcRelatedId);
            if(sSuppliers!=null){
                SuppliersSiteInspectionBaseInfoVO suppliersSiteInspectionBaseInfoVO = sSuppliersWorkFlowService.getSuppliersSiteInspectionBaseInfo(sSuppliers.getId(), rcRelatedId, CommonConstants.TEMPLATE_CATEGORY_1);
                restReturnResult.setData(suppliersSiteInspectionBaseInfoVO);
            }else {
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
            return restReturnResult;
        } catch (Exception e) {
            e.printStackTrace();
            restReturnResult = RestReturnResult.error();
        }

        return restReturnResult;
    }

    @GetMapping("/getTeamMembersOpinionInfos/{rcRelatedId}")
    @ApiOperation(value = "组员意见", notes = "组员意见")
    public RestReturnResult getTeamMembersOpinionInfos(@PathVariable String rcRelatedId) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        restReturnResult.setData(sSuppliersWorkFlowService.getTeamMembersOpinionInfos(rcRelatedId));
        return restReturnResult;
    }



    @PostMapping("/doSuppliersInspection")
    @ApiOperation(
            value = "供方管理-现场考察-录入接口",
            notes = "供方管理-现场考察-录入接口",
            response = SSuppliers.class
    )
    public RestReturnResult doSuppliersInspection(@RequestBody SuppliersInspectionRequestVO suppliersInspectionRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();

        try {
            SSupplierRcRelate sSupplierRcRelate=sSupplierRcRelateService.selectById(suppliersInspectionRequestVO.getRcRelatedId());
//            ExtSSuppliers sSuppliers=sSupplierRcRelateService.getByRelatedId(suppliersInspectionRequestVO.getRcRelatedId());
            if(sSupplierRcRelate!=null){
                suppliersInspectionRequestVO.setSuppliersId(sSupplierRcRelate.getSuppliersId());
                suppliersInspectionRequestVO.setRegionalCompanyId(sSupplierRcRelate.getRegionalCompanyId());
                restReturnResult = sSuppliersWorkFlowService.doSuppliersInspection(suppliersInspectionRequestVO);
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        } catch (Exception e) {
            e.printStackTrace();
            restReturnResult = RestReturnResult.error();
        }

        return restReturnResult;
    }

    @PostMapping("/addSuppliersInspection")
    @ApiOperation(
            value = "供方管理-现场考察-新增考察报告",
            notes = "供方管理-现场考察-新增考察报告",
            response = SSuppliers.class
    )
    public RestReturnResult addSuppliersInspection(@RequestBody SuppliersInspectionRequestVO suppliersInspectionRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        SSupplierRcRelate sSupplierRcRelate=sSupplierRcRelateService.selectById(suppliersInspectionRequestVO.getRcRelatedId());
        if(sSupplierRcRelate!=null){
            suppliersInspectionRequestVO.setSuppliersId(sSupplierRcRelate.getSuppliersId());
            suppliersInspectionRequestVO.setRegionalCompanyId(sSupplierRcRelate.getRegionalCompanyId());
        }
        restReturnResult.setData(sSuppliersWorkFlowService.addSuppliersInspection(suppliersInspectionRequestVO));
        return restReturnResult;
    }

    @GetMapping("/deleteSuppliersInspection/{id}")
    @ApiOperation(
            value = "供方管理-现场考察-删除考察报告",
            notes = "供方管理-现场考察-删除考察报告",
            response = SSuppliers.class
    )
    public RestReturnResult deleteSuppliersInspection(@PathVariable String id) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        sSuppliersWorkFlowService.deleteSupplierInspectionById(id);
        return restReturnResult;
    }

    @PostMapping("/updateSuppliersInspectionAttachment")
    @ApiOperation(
            value = "供方管理-现场考察-删除考察报告",
            notes = "供方管理-现场考察-删除考察报告",
            response = SSuppliers.class
    )
    public RestReturnResult updateSuppliersInspectionAttachment(@RequestBody  SuppliersInspectionRequestVO suppliersInspectionRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        SSupplierRcRelate sSupplierRcRelate=sSupplierRcRelateService.selectById(suppliersInspectionRequestVO.getRcRelatedId());
        if(sSupplierRcRelate!=null){
            suppliersInspectionRequestVO.setSuppliersId(sSupplierRcRelate.getSuppliersId());
            suppliersInspectionRequestVO.setRegionalCompanyId(sSupplierRcRelate.getRegionalCompanyId());
        }
        sSuppliersWorkFlowService.updateSupplierInspectionAttach(suppliersInspectionRequestVO);
        return restReturnResult;
    }



    @GetMapping("/getInspectionAnnouncement/{thirdRelatedId}")
    @ApiOperation(value = "现场考察申请详情", notes = "现场考察")
    public RestReturnResult getInspectionAnnouncement(@PathVariable String thirdRelatedId){
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	try{

        	SMessages message = sMessagesService.selectById(thirdRelatedId);
        	restReturnResult.setData(message);

        	return restReturnResult;

    	}catch(Exception e){
    		e.printStackTrace();
    		throw new RuntimeException(e.getMessage(), e.getCause());
    	}

    }

    @PostMapping("/checkSuppliersInspectionApply")
    @ApiOperation(value = "审核现场考察申请", notes = "现场考察")
    public RestReturnResult checkSuppliersInspectionApply(@RequestBody SuppliersInspectionRequestVO suppliersInspectionRequestVO){
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	restReturnResult = sSuppliersWorkFlowService.checkSuppliersInspectionApply(suppliersInspectionRequestVO);

    	return restReturnResult;
    }


    @PostMapping("/getSuppliersInspectionScoreDetails")
    @ApiOperation(
            value = "现场考察组长打分待办-打分明细接口",
            notes = "现场考察组长打分待办-打分明细接口",
            response = SSuppliers.class
    )
    public RestReturnResult getSuppliersInspectionScoreDetails(@RequestBody SuppliersInspectionScoreRequestVO suppliersInspectionScoreRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();

        try {
            List<SuppliersInspectionScoreResponseVO> suppliersInspectionScoreDetails = sSuppliersWorkFlowService.getSuppliersInspectionScoreDetails(suppliersInspectionScoreRequestVO);
            restReturnResult.setData(suppliersInspectionScoreDetails);
        } catch (Exception e) {
            e.printStackTrace();
            restReturnResult = RestReturnResult.error();
        }

        return restReturnResult;
    }


    @PostMapping("/doSuppliersInspectionLeaderAudit")
    @ApiOperation(value = "现场考察组长打分接口", notes = "现场考察组长打分接口")
    public RestReturnResult doSuppliersInspectionLeaderAudit(@RequestBody SuppliersInspectionRequestVO suppliersInspectionRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();

        try {
          /*  suppliersInspectionRequestVO.setId("1");//没传
            suppliersInspectionRequestVO.getLstAttachments().get(0).setId(null);
            suppliersInspectionRequestVO.setSuppliersId("f79c1476a02f464da1ddd27458d881a7");*/
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(suppliersInspectionRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                suppliersInspectionRequestVO.setSuppliersId(sSuppliers.getId());
                restReturnResult = sSuppliersWorkFlowService.doSuppliersInspectionLeaderAudit(suppliersInspectionRequestVO);
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        } catch (Exception e) {
            e.printStackTrace();
            restReturnResult = RestReturnResult.error();
            restReturnResult.setMsg(e.getMessage());
        }

        return restReturnResult;
    }

    @GetMapping("/outContactList")
    @ApiOperation(value = "考察报告-外部合约列表", notes = "考察报告-外部合约列表")
    public RestReturnResult outContactList(@RequestParam(required = false) String name,@RequestParam String supplierId) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        restReturnResult.setData(sSuppliersWorkFlowService.getOutContactSimList(name,supplierId));
        return restReturnResult;
    }

    @GetMapping("/isCompleteReport/{inspectId}")
    @ApiOperation(value = "考察报告-组长打分代办提交判断是否填写完成报告", notes = "考察报告-组长打分代办提交判断是否填写完成报告")
    public RestReturnResult isCompleteReport(@PathVariable String inspectId) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        restReturnResult.setData(sSuppliersWorkFlowService.isCompleteReport(inspectId));
        return restReturnResult;
    }

    @PostMapping("/addPerform")
    @ApiOperation(value = "考察报告-新增业绩复核", notes = "考察报告-新增业绩复核")
    public RestReturnResult addPerform(@RequestBody SSuppliersInspectionPerform sSuppliersInspectionPerform) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        sSuppliersWorkFlowService.addSuppliersInspectionPerform(sSuppliersInspectionPerform);
        restReturnResult.setData(sSuppliersInspectionPerform);
        return restReturnResult;
    }

    @GetMapping("/deletePerform/{id}")
    @ApiOperation(value = "考察报告-删除业绩复核", notes = "考察报告-删除业绩复核")
    public RestReturnResult deletePerform(@PathVariable String id) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        sSuppliersWorkFlowService.deleteSupplierInspectionPerformById(id);
        return restReturnResult;
    }

    @GetMapping("/supplierInspectionDetail/{id}")
    @ApiOperation(value = "考察报告-详细清单", notes = "考察报告-详细清单")
    public RestReturnResult supplierInspectionDetail(@PathVariable String id) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        restReturnResult.setData(sSuppliersWorkFlowService.selectSupplierInspectionDetail(id));
        return restReturnResult;
    }

    @PostMapping("/submitSupplierInspectionDetail")
    @ApiOperation(value = "考察报告-提交清单", notes = "考察报告-提交清单")
    public RestReturnResult submitSupplierInspectionDetail(@RequestBody SuppliersInspectionDetailVO vo) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        sSuppliersWorkFlowService.submitSupplierInspectionDetail(vo);
        return restReturnResult;
    }



    @PostMapping("/doSuppliersInspectionMemberAudit")
    @ApiOperation(value = "现场考察组员会签待办接口", notes = "现场考察组员会签待办接口")
    public RestReturnResult doSuppliersInspectionMemberAudit(@RequestBody SuppliersInspectionRequestVO suppliersInspectionRequestVO) {
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	try{
    		/*suppliersInspectionRequestVO.setId("1");
            suppliersInspectionRequestVO.setSuppliersId("f79c1476a02f464da1ddd27458d881a7");*/
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(suppliersInspectionRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                suppliersInspectionRequestVO.setSuppliersId(sSuppliers.getId());
                restReturnResult = sSuppliersWorkFlowService.doSuppliersInspectionMemberAudit(suppliersInspectionRequestVO);
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
    	}catch(Exception e){
    		e.printStackTrace();
            restReturnResult=restReturnResult.error();
            restReturnResult.setMsg(e.getMessage());
    	}

        return restReturnResult;
    }

    @PostMapping("/checkSuppliersInspection")
    @ApiOperation(value = "现场考察审核接口", notes = "现场考察审核接口")
    public RestReturnResult checkSuppliersInspection(@RequestBody SuppliersAuditRequestVO suppliersAuditRequestVO) {
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	try{
    		//suppliersAuditRequestVO.setId("f79c1476a02f464da1ddd27458d881a7");
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(suppliersAuditRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                suppliersAuditRequestVO.setId(sSuppliers.getId());
                restReturnResult = sSuppliersWorkFlowService.checkSuppliersInspection(suppliersAuditRequestVO);
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
    	}catch(Exception e){
    		e.printStackTrace();
            restReturnResult=restReturnResult.error();
    	}

        return restReturnResult;
    }

    @PostMapping("/setupSupplierStorageProcess")
    @ApiOperation(
            value = "发起供方入库审批接口",
            notes = "发起供方入库审批接口",
            response = SSuppliers.class
    )
    public RestReturnResult setupSupplierStorageProcess(@RequestBody SuppliersAuditRequestVO suppliersAuditRequestVO) {
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	try{
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(suppliersAuditRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                Integer count=extSSupplierRcRelateMapper.getApprovalCount(sSuppliers.getId());
                if(count!=null&&count==0){
                    suppliersAuditRequestVO.setId(sSuppliers.getId());
                    restReturnResult = sSuppliersWorkFlowService.setupSupplierStorageProcess(suppliersAuditRequestVO);
                }else{
                    restReturnResult =new RestReturnResult(CommonConstants.FAIL, "其他流程审批中无法操作");
                }
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
    	}catch(Exception e){
    		e.printStackTrace();
            restReturnResult=restReturnResult.error();
    	}

        return restReturnResult;
    }

    @GetMapping("/supplierImport/{supplierId}/{regionalCompanyId}")
    @ApiOperation(value = "供方引入接口", notes = "供方引入接口")
    public RestReturnResult supplierImport(@PathVariable String supplierId,@PathVariable String regionalCompanyId ) {
    	RestReturnResult restReturnResult = RestReturnResult.success();
    	try{
    		restReturnResult = sSuppliersWorkFlowService.supplierImport(supplierId,regionalCompanyId);
    	}catch(Exception e){
    		e.printStackTrace();
            restReturnResult=restReturnResult.error();
    	}

        return restReturnResult;
    }

    @PostMapping("/supplierAlterationAudit")
    @ApiOperation(value = "供方变更审核接口", notes = "供方变更审核接口")
    public RestReturnResult supplierAlterationAudit(@RequestBody SuppliersAuditRequestVO suppliersAuditRequestVO) {
    	RestReturnResult restReturnResult = RestReturnResult.success();

    	try{
    		restReturnResult = sSuppliersWorkFlowService.supplierAlterationAudit(suppliersAuditRequestVO);
    	}catch(Exception e){
    		e.printStackTrace();
            restReturnResult=restReturnResult.error();
    	}

        return restReturnResult;
    }

    @PostMapping("/turnToPendingWatch")
    @ApiOperation(value = "转待观察接口", notes = "转待观察接口")
    public RestReturnResult turnToPendingWatch(@RequestBody TransferRequestVO transferRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();

        try{
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(transferRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                Integer count=extSSupplierRcRelateMapper.getApprovalCount(sSuppliers.getId());
                if(count!=null&&count==0){
                    transferRequestVO.setSupplierId(sSuppliers.getId());
                    restReturnResult = sSuppliersWorkFlowService.turnToPendingWatch(transferRequestVO);
                }else{
                    restReturnResult =new RestReturnResult(CommonConstants.FAIL, "其他流程审批中无法操作");
                }
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        }catch(Exception e){
        	e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

        return restReturnResult;
    }

    @PostMapping("/turnToUnqualified")
    @ApiOperation(value = "转不合格接口", notes = "转不合格接口")
    public RestReturnResult turnToUnqualified(@RequestBody TransferRequestVO transferRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        try{
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(transferRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                Integer count=extSSupplierRcRelateMapper.getApprovalCount(sSuppliers.getId());
                if(count!=null&&count==0){
                    transferRequestVO.setSupplierId(sSuppliers.getId());
                    restReturnResult = sSuppliersWorkFlowService.turnToUnqualified(transferRequestVO);
                }else{
                    restReturnResult =new RestReturnResult(CommonConstants.FAIL, "其他流程审批中无法操作");
                }
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

        return restReturnResult;
    }

    @PostMapping("/turnToPotential")
    @ApiOperation(value = "转潜在接口", notes = "转潜在接口")
    public RestReturnResult turnToPotential(@RequestBody TransferRequestVO transferRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();
        try{
            if(StringUtils.isNotEmpty(transferRequestVO.getSupplierId())){
                Integer count=extSSupplierRcRelateMapper.getApprovalCount(transferRequestVO.getSupplierId());
                if(count!=null&&count==0){
                    restReturnResult = sSuppliersWorkFlowService.turnToPotential(transferRequestVO);
                }else{
                    restReturnResult =new RestReturnResult(CommonConstants.FAIL, "其他流程审批中无法操作");
                }
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

        return restReturnResult;
    }

    @PostMapping("/turnToBlackLibrarys")
    @ApiOperation(value = "转黑库接口", notes = "转黑库接口")
    public RestReturnResult turnToBlackLibrary(@RequestBody TransferRequestVO transferRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.success();

        try{
            ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(transferRequestVO.getRcRelatedId());
            if(sSuppliers!=null){
                Integer count=extSSupplierRcRelateMapper.getApprovalCount(sSuppliers.getId());
                if(count!=null&&count==0){
                    transferRequestVO.setSupplierId(sSuppliers.getId());
                    restReturnResult = sSuppliersWorkFlowService.turnToBlackLibrary(transferRequestVO);
                }else{
                    restReturnResult =new RestReturnResult(CommonConstants.FAIL, "其他流程审批中无法操作");
                }
            }else{
                restReturnResult =new RestReturnResult(CommonConstants.FAIL, "数据不存在");
            }
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

        return restReturnResult;
    }

    @PostMapping("/doSupplierStorageProcess")
    @ApiOperation(value = "MBS系统回调处理（审批通过/审批不通过）", notes = "MBS系统回调处理（审批通过/审批不通过）")
    public RestReturnResult doSupplierStorageProcess(@RequestBody SuppliersAuditRequestVO suppliersAuditRequestVO) {
        RestReturnResult restReturnResult = RestReturnResult.error();

        try{
            if(StringUtils.isNotEmpty(suppliersAuditRequestVO.getRcRelatedId())){
                ExtSSuppliers sSuppliers=extSSuppliersMapper.getByRelatedId(suppliersAuditRequestVO.getRcRelatedId());
                if(sSuppliers!=null) suppliersAuditRequestVO.setId(sSuppliers.getId());
            }
                sSuppliersWorkFlowService.doSupplierStorageProcess(suppliersAuditRequestVO);
                restReturnResult=RestReturnResult.success();
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

        return restReturnResult;
    }


    @GetMapping("/reDoInspection/{rcRelatedId}")
    @ApiOperation(value = "重新考察", notes = "重新考察")
    public RestReturnResult reDoInspection(@PathVariable String rcRelatedId){
    	RestReturnResult restReturnResult = RestReturnResult.error();

    	try{
    		restReturnResult = sSuppliersWorkFlowService.reDoInspection(rcRelatedId);
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

    	return restReturnResult;
    }

    @PostMapping("/checkDoSiteInspectionInQualificationList")
    @ApiOperation(value = "合格列表现场考察发起控制", notes = "合格列表现场考察发起控制")
    public RestReturnResult checkDoSiteInspectionInQualificationList(@RequestBody CheckDoSiteInspectionRequestVO checkDoSiteInspectionRequestVO){
    	RestReturnResult restReturnResult = RestReturnResult.error();

    	try{
    		restReturnResult = sSuppliersWorkFlowService.checkDoSiteInspectionInQualificationList(checkDoSiteInspectionRequestVO);
        }catch(Exception e){
            e.printStackTrace();
            restReturnResult=restReturnResult.error();
        }

    	return restReturnResult;
    }

}
